package com.ht.modules.alarmstatis.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 *  班组考评统计
 * @Author:
 * @Date: 2024-01-11
 * @Version: V1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AlarmTeamStatis implements Serializable {
    private Integer centreId;
    private Integer deviceId;
    private Integer unitId;
    private String centreName;
    private String deviceName;
    private String unitName;
    private String teamId;
    private String pointFrom;
    private String teamName;
    private Integer alarmCount;
    private Integer disposeCount;
    private BigDecimal disposeRate;
    // -------------- 查询字段 ------------------
    /**
     * 统计开始时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    /**
     * 统计结束时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    private List<Integer> centreIds;
    private boolean needAuthority = true;

    // 分组查询使用
    private String customGroupId;
    private String customGroupType;
    private List<Integer> idList;
}
